import http from '../untils/http'

// 预览海报
function preview (data) {
  const url = '/index/preview'
  return http.post(url, data)
}

// 添加海报
function add (data) {
  const url = '/index/posterAdd'
  return http.post(url, data)
}

// 编辑海报
function info (data) {
  const url = '/index/getPoster'
  return http.get(url, data)
}

// 海报列表
function list (data) {
  const url = '/index/posterList'
  return http.get(url, data)
}

export default {
  preview,
  add,
  list,
  info
}
